package org.gateway.router;

import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class GatewayRouteDefinition {
    private String id;              // 路由ID
    private String uri;             // 目标URI (lb://service-name 或 http://example.com)
    private List<String> predicates; // 断言列表 (Path=/api/**)
    private List<String> filters;   // 过滤器列表 (StripPrefix=1)
    private int order = 0;          // 路由顺序
    private Map<String, Object> metadata; // 元数据
}
